#!/bin/bash

sanxia_prefix="/public/users/wrf/Data/SanXia/"
csvfileList=("cy_bdy.csv" "jialriver_bdy.csv" "pc_bdy.csv" "minriver_bdy.csv" "tuoriver_bdy.csv")
regionNameList=("CunYi" "JiaLingRiver" "PingCun" "MinRiver" "TuoRiver")
wrfout_file="/public/users/wrf/wrfout/2013012408/wrfout_d02_2013-01-24_00:00:00"

for i in `seq 0 4`
do
    csvfile=${sanxia_prefix}${csvfileList[$i]}
    region_name=${regionNameList[$i]}
    output_filename="/public/users/wrf/Data/SanXia/${region_name}_mask_2_d02.csv"
    echo $csvfile
    echo $region_name
    echo $output_filename
    ncl csvfile='"'$csvfile'"' region_name='"'$region_name'"' wrfout_file='"'$wrfout_file'"' output_filename='"'$output_filename'"' wrf_polygon_map.ncl 
done
